package com.yuw.homework04;

public class TestDriver {
    public static void main(String[] args) {
        // 创建员工
        SalariedEmployee salariedEmployee = new SalariedEmployee("张三", 3, 5000);
        HourlyEmployee hourlyEmployee = new HourlyEmployee("李四", 4, 30, 170);
        SalesEmployee salesEmployee = new SalesEmployee("王五", 5, 100000, 0.1);
        // 创建员工数组
        ColaEmployee[] employees = new ColaEmployee[]{salariedEmployee, hourlyEmployee, salesEmployee};
        // 创建一个公司类
        Company company = new Company(employees);
        // 打印3月份工资
        company.printEmplyeeSalary(5);
    }
}
